/**
 * Project SearchEngine
 */
#ifndef _DIRSCANNER_H
#define _DIRSCANNER_H

#include <string>
#include <vector>

using std::vector;
using std::string;

class DirScanner {
public: 
    DirScanner();
    ~DirScanner();
    void operator()(const string& dirname); 
    vector<string>& getFiles();
    
    void traverse(const string& dirname);
private: 
    string _dirname;
    vector<string> _files;
};

#endif //_DIRSCANNER_H
